package com.springinaction.ch03.profile;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;


@RunWith(SpringJUnit4ClassRunner.class)
//@ContextConfiguration(classes=com.springinaction.ch03.profile.ProfiesConfig.class)
@ContextConfiguration("classpath:com/springinaction/ch03/profile/PofilesContext.xml")
@ActiveProfiles("pro")
public class ProfilesConfigTest {
	   
	@Autowired
	private Profiles profilesname;
	
	@Test
	public void test() {
		profilesname.play();
	}
}
